function TransportIPSendPing (remotehost: ipAddr; timeout: integer; datap: Ptr; datalen: integer; var token: Ptr): OSStatus;
procedure TransportGetIPSendPingResult( var token: Ptr; var result: OSStatus; var results: TransportPingResults );
procedure TransportDisposeIPSendPingResult( var results: TransportPingResults ); { call if TransportGetIPSendPingResult result = noErr to dispose data }
procedure TransportAbortIPSendPing( var token: Ptr );
function TransportNameToAddr(name: Str255; var token: Ptr): OSStatus;
function TransportGetConnectionState (tref:TransportRef): TCPStateType;
var
btp:TransportRecordPtr;
state:TCPStateType;
begin
btp := TransportRecordPtr(tref);
if (btp = nil) | (TransportSystemIsAlive <> noErr) then begin
state := T_Dead;
end else if have_OT then begin
state := TransportGetConnectionStateOT(btp^.ep);
end else begin
btp^.tstate := MTTCPState(btp^.stream);
state := btp^.tstate;
end;
TransportGetConnectionState := state;
end;
procedure TransportLowGetStreamPtr(tref:TransportRef; var stream: StreamPtr);
var
btp:TransportRecordPtr;
begin
btp := TransportRecordPtr(tref);
Assert(btp <> nil);
Assert(ValidTransport(tref));
Assert(not have_OT);
stream := btp^.stream;
end;
procedure TransportLowGetEndpointRef(tref:TransportRef; var ep: EndpointRef);
var
btp:TransportRecordPtr;
begin
btp := TransportRecordPtr(tref);
Assert(btp <> nil);
Assert(have_OT);
Assert(ValidTransport(tref));
ep := btp^.ep;
end;
function TransportLowSetOTAckSends(tref:TransportRef; handler: MemoryReleasedProc): OSStatus;
var
err: OSStatus;
btp:TransportRecordPtr;
begin
btp := TransportRecordPtr(tref);
Assert(btp <> nil);
Assert(ValidTransport(tref));
Assert(have_OT);
err := OpenTransportSystem;
if err = noErr then begin
if btp^.MemoryReleasedHandler = nil then begin
err := OTAckSends(btp^.ep);
end;
if err = noErr then begin
btp^.MemoryReleasedHandler := handler;
end;
end;
TransportLowSetOTAckSends := err;
end;
function SafeOTGetPortsSync( btp: TransportRecordPtr; var localip: ipAddr; var localport: ipPort; var remoteip: ipAddr; var remoteport: ipPort): OSStatus;